From: rien333 Date: Thu, 17 May 2018 10:34:35 +0000 (+0100) Subject: Fix FTBFS with FFmpeg 4.0 X-Git-Tag: archive/raspbian/2.9.1-1+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41b44225e7733314b45729ff80a9ec0b33a75636;p=cmus.git Fix FTBFS with FFmpeg 4.0 Origin: backport, https://github.com/cmus/cmus/pull/793 Bug-Debian: https://bugs.debian.org/888384 Bug-Debian: https://bugs.debian.org/888384 Gbp-Pq: Name 12-ffmpeg-4.0.patch --- diff --git a/ffmpeg.c b/ffmpeg.c index 62c3903..69af067 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -252,8 +252,8 @@ static int ffmpeg_open(struct input_plugin_data *ip_data) break; } - if (codec->capabilities & CODEC_CAP_TRUNCATED) - cc->flags |= CODEC_FLAG_TRUNCATED; + if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) + cc->flags |= AV_CODEC_FLAG_TRUNCATED; #if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0)) if (avcodec_open(cc, codec) < 0) {